//
//  XFYShareSDKAdapter.h
//  SDKSample
//
//  Created by 小肥羊 on 15/7/22.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ShareSDK/ShareSDK.h>

//分享
#import <ShareSDKConnector/ShareSDKConnector.h>
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/QQApiInterface.h>
#import "WXApi.h"
#import "WeiboSDK.h"
#import <ShareSDKUI/ShareSDKUI.h>

//登录
#import "ShareSDKUserInfo.h"
#import <MOBFoundation/MOBFoundation.h>
#import <MOBFoundation/MOBFImageService.h>
#import <ShareSDKExtension/SSEThirdPartyLoginHelper.h>


/* ShareKey                 创建分享内容对象，根据以下每个字段适用平台说明来填充字典
 __eShareTitle              标题（微信）
 __eShareBody               分享内容（新浪、短信、微信、拷贝）
 __eShareUrl                链接（微信）
 __eShareimageName          分享图片（新浪、微信、拷贝）
 __eShareDefaultContent 	默认分享内容（新浪、短信、微信、QQ、拷贝）
 __eShareMediaType          分享类型（微信）
 */
#define __eShareTitle           (@"eShareTitle")
#define __eShareBody            (@"eShareBody")
#define __eShareUrl             (@"eShareUrl")
#define __eShareImage           (@"eShareImageName")
#define __eShareDefaultContent  (@"eShareDefaultContent")
#define __eShareMediaType       (@"eSahreMediaType")
#define __eShareBlock           (@"eSahreBlock")


@interface XFYShareSDKAdapter : NSObject

/*! @brief ShareBasicAdapter单例 */
+ (XFYShareSDKAdapter *)sharedManager;

/*! @brief 注册所有控件 */
- (void)registerAllShare;


#pragma mark - 第三方登录相关
/*! @brief 注销 */
- (void)LoginOut;
/*! @brief 当前用户 */
- (ShareSDKUserInfo *)currentUser;

#pragma mark - 分享相关
/*! @brief 指定平台快速分享 不显示分享菜单 */
- (void)ShareNoUIWithKey:(NSDictionary *)keyValue ShareType:(SSDKPlatformType)shareType onStateChanged:(SSDKShareStateChangedHandler)stateChangedHandler;
/*! @brief ShareSDK自带UI,选择分享 */
- (void)ShareToShareSdkUIWithKey:(NSDictionary *)keyValue View:(UIView *)view;

@end
